import IComponent from "../../base/ECSR/IComponent";

export default class MovePathComponent extends IComponent
{
    path:cc.Vec2[] = [];            // 移动路径
    targetPos:cc.Vec2 = cc.Vec2.ZERO; //目标点坐标
    isFind:boolean = false; //  是否找到相应的目标点
    speed:number = 0; // 每逻辑帧移动速度

    currPathStartIndex:number = 0;    // 正在移动的路径起点下标
    time:number = 0;                // 走完当前的路径的总耗时
    timeElapse:number = 0;          // 已经消耗的时间

    constructor()
    {
        super();
        this.type = "MovePathComponent";
    }
    Clone():IComponent
    {
        return null;
    }
    // GetCommand(): string
    // {
    //     return "move";
    // }

    UpdateParams(paramsStrs:string[])
    {
    }
}